package chainOfResponsibility;

/**
 * 责任链数据
 */
public class LeaveRequest {
    // 姓名
    private String name;
    // 请假天数
    private int num;
    // 请假内容
    private String context;

    public LeaveRequest(String name, int num, String context) {
        this.name = name;
        this.num = num;
        this.context = context;
    }

    public String getName() {
        return name;
    }

    public int getNum() {
        return num;
    }

    public String getContext() {
        return context;
    }

    @Override
    public String toString() {
        return "LeaveRequest{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", context='" + context + '\'' +
                '}';
    }
}
